package com.kaifamiao.enca;

public class Monkey {

    private String name;
    private int age;

    public void assign( String name, int age){
        this.name = name;
        this.age = age;
    }

    public void introduce(){
        System.out.println( this.name + ", " + this.age );
    }

    public static void main(String[] args) {
        Monkey m = new Monkey();
        m.name = "孙悟空" ;
        m.age = 22;
        System.out.println( m.name + ", " + m.age );
    }

}
